(comment-indent-new-line): Use delete-horizontal-space
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 11 Dec 2000 21:41:35 +0000 (21:41 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 11 Dec 2000 21:41:35 +0000 (21:41 +0000)
(so as to obey the field property in the minibuffer).

lisp/newcomment.el

index ec294883c4a5e0b1a4d0ae5085ad242d34fb90c4..bbd922e5dd94379d7d17f5ef5c798b9f37eb00a5 100644 (file)
@@ -6,7 +6,7 @@
 ;; Maintainer: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: comment uncomment
 ;; Version: $Name:  $
-;; Revision: $Id: newcomment.el,v 1.26 2000/11/29 05:11:01 monnier Exp $
+;; Revision: $Id: newcomment.el,v 1.27 2000/12/06 19:54:37 fx Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -928,8 +928,7 @@ unless optional argument SOFT is non-nil."
                          (setq comin (point))))))
 
       ;; Now we know we should auto-fill.
-      (delete-region (progn (skip-chars-backward " \t") (point))
-                    (progn (skip-chars-forward  " \t") (point)))
+      (delete-horizontal-space)
       (if soft (insert-and-inherit ?\n) (newline 1))
       (if fill-prefix
          (progn